<template>
  <div>
    <h2>父组件</h2>
    {{ str }}
    <hr>
    {{ pass }}
    <hr>
    <!-- 可以绑定多个v-model -->
    <Son v-model:modelValue="str" v-model:abc="pass" />
    <!-- <Son :modelValue="str" @update:modelValue="val => str = val" /> -->
  </div>
</template>

<script setup>
import Son from "./views/son.vue"
import { ref, reactive } from "vue"
const str = ref("字符串")
const pass = ref(123)


</script>

<style scoped></style>
